package com.yijianonghu.service.wxwebsite.lpcz;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import org.springframework.stereotype.Service;

import com.yijianonghu.dal.model.LPCZType;
import com.yijianonghu.dal.model.LPCZTypeExample;

import net.javahub.service.BaseService;

@Service
public class LPCZTypeListService extends BaseService<LPCZType, Integer, LPCZTypeExample>{

	//首页粮票超值分类的展示
	public List<LPCZType> getLPCZTypeList() throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{
		LPCZTypeExample example=new LPCZTypeExample();
		example.createCriteria()
			.andKeytypeIsNotNull()
			.andKeytypeEqualTo((byte)1)
			.andRemoveflagEqualTo((byte)0);
		List<LPCZType> categoryList=selectListByExample(LPCZType.class, example);
		return categoryList;
	}

}
